<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Ajax with get method</title>
<script src="http://code.jquery.com/jquery-1.4.2.js"></script>
<script type="text/javascript" language="javaScript">
	$(document).ready(function() {
		$.ajax({
			type : "POST",
			url : "poster.php",
			data : {
				user : 'admin',
				pass : 123
			},
			success : callback
		});
	});

	function callback(data, status) {
		$("div").text(data);
	}
</script>
</head>
<body>
	<div></div>
</body>
</html>